<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest as Request;

class FormRequest extends Request
{
    protected $stopOnFirstFailure = true;

    protected function pageRules (): array
    {
        return [
            'page' => 'nullable|integer',
            'pageSize' => 'nullable|integer|in:10,20,50,100,500'
        ];
    }
}
